from django.urls import path
from .views import Register, WeChatRegister, Login, WeChatLogin, AvatarModify, UserInfoModify, GetCode, Exit, \
    Logout, GoodUpload, PasswordModify, QQModify, GetUserInfo, GetGoods, GoodsModify

from .views import Test

# TODO 删除test路由
urlpatterns = [
    path(r'register/', Register.as_view()),
    path(r'wechatRegister/', WeChatRegister.as_view()),
    path(r'login/', Login.as_view()),
    path(r'wechatLogin/', WeChatLogin.as_view()),
    path(r"avatarModify/", AvatarModify.as_view()),
    path(r"userinfoModify/", UserInfoModify.as_view()),
    path(r"passwordModify/", PasswordModify.as_view()),
    path(r"qqModify/", QQModify.as_view()),
    path(r"getcode/", GetCode.as_view()),
    path(r"exit/", Exit.as_view()),
    path(r"logout/", Logout.as_view()),
    path(r"goodUpload/", GoodUpload.as_view()),
    path(r"test/", Test.as_view()),
    path(r"getUserinfo/", GetUserInfo.as_view()),
    path(r"getGoods/", GetGoods.as_view()),
    path(r"goodsModify/", GoodsModify.as_view()),
]
